use "/Users/sokolins/Dropbox/Ideas/PortfolioManagersSalariesUpdated/JFQA Replication Package May 2025/Code/rep_data", clear

************************************************
***Baseline REGRESSIONS WITH FIRM-YEAR FE

//All vars
local y "l_salary"

local team_skill " l_skill l_teamskill"  
local team_visibility " l_visibility l_t_visibility" 
local manager_vars "l_revenue l_manager_age l_fund_exp extra_role l_nfunds equity"
local team_vars "l_team_fund_exp l_team_size l_team_manager_age team_equity_share"


//regressions
qui reghdfe `y' teams `team_skill',  absorb(firm year) cl(License year)
outreg2 using "results.tex",  dec(3) nocon replace ///
  addtext(Firm FE, Yes, Year FE, Yes,Firm*Year  FE, No, Manager FE, No)  ///
 
qui reghdfe `y' teams `team_visibility', absorb(firm year) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
  addtext(Firm FE, Yes, Year FE, Yes,Firm*Year  FE, No, Manager FE, No) ///

qui reghdfe `y' teams `team_skill' `team_visibility', absorb(firm year) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
addtext(Firm FE, Yes, Year FE, Yes,Firm*Year  FE, No, Manager FE, No) ///

qui reghdfe `y' teams `team_skill' `team_visibility' `manager_vars', absorb(firm year) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
addtext(Firm FE, Yes, Year FE, Yes,Firm*Year  FE, No, Manager FE, No) ///

qui reghdfe `y' teams `team_skill' `team_visibility' `manager_vars' `team_vars', absorb(firm year) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
addtext(Firm FE, Yes, Year FE, Yes,Firm*Year  FE, No, Manager FE, No) ///

qui reghdfe `y' teams `team_skill' `team_visibility' `manager_vars' `team_vars', absorb(firm#year) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
addtext(Firm FE, Yes, Year FE, Yes,Firm*Year  FE, Yes, Manager FE, No) ///

qui reghdfe `y' teams `team_skill' `team_visibility' `manager_vars' `team_vars', absorb(firm#year License) cl(License year)
outreg2 using "results.tex",  dec(3) nocon append ///
  addtext(Firm FE, No, Year FE, No,Firm*Year  FE, Yes, Manager FE, Yes)  ///

  

  


seeout using "results.txt"
*********************************************

